package org.senzacontrollo.designPatterns.bridge;

import java.util.Collection;

public class CompleteMatrix extends Matrix {

	public CompleteMatrix(int rows, int cols, Collection<MatrixCell> data) {
		super(rows, cols, data);
		for(int i = 0 ; i< rows ; i++){
			for(int j = 0; j<rows ;j++){
				createPosition(i,j);
			}
		}
	}

	@Override
	protected void put(int row, int col, int value) {
		MatrixCell cell = getPosition(row, col);
		cell.setValue(value);
		
	}

	@Override
	protected MatrixCell get(int row, int col) {
		return getPosition(row, col);
	}

}
